import { http } from "@/utils/http.js";

// 我的消息列表
export const messageListApi = (data) => {
  return http.request({
    method: "get",
    url: "/message/list",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 我的消息详情
export const messageDetailApi = (data) => {
  return http.request({
    method: "get",
    url: "/message/detail",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};


// 消息数量
export const messagenumber = (data) => {
  return http.request({
    method: "get",
    url: "/message/number",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};
